package com.sh169.pojos;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

@Table("sh_product")
public class Product extends BasePojo{

	private static final long serialVersionUID = 4388049161614602795L;
	public final static short STATE_ENABLE = 1; 
	public final static short STATE_DISABLE = 0; 
	@Id
	@Column
	private int id;
	@Column("productname")
	private String productName;
	@Column
	private int vendorid;
	@One(field="vendorid",target=Vendor.class)
	private Vendor vendor;
	@Column
	private int classifyid;
	@One(field="classifyid",target=Classify.class)
	private Classify classify;
	@Column
	private int brandid;
	@One(field="brandid",target=Brand.class)
	private Brand brand;
	@Column
	private int pinpaiid;
	@Column
	private float price;
	@Column
	private float promotionPrice;
	@Column("ispromotion")
	private boolean ifPromotion =false;
	@Column("isrecommend")
	private boolean ifRecommend = false;
	@Column
	private short state;
	@Column
	private String image;
	@Column
	private String description;
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public int getVendorid() {
		return vendorid;
	}
	public void setVendorid(int vendorid) {
		this.vendorid = vendorid;
	}
	public int getClassifyid() {
		return classifyid;
	}
	public void setClassifyid(int classifyid) {
		this.classifyid = classifyid;
	}
	public int getBrandid() {
		return brandid;
	}
	public void setBrandid(int brandid) {
		this.brandid = brandid;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public float getPromotionPrice() {
		return promotionPrice;
	}
	public void setPromotionPrice(float promotionPrice) {
		this.promotionPrice = promotionPrice;
	}
	public boolean isIfPromotion() {
		return ifPromotion;
	}
	public void setIfPromotion(boolean ifPromotion) {
		this.ifPromotion = ifPromotion;
	}
	public boolean isIfRecommend() {
		return ifRecommend;
	}
	public void setIfRecommend(boolean ifRecommend) {
		this.ifRecommend = ifRecommend;
	}
	public short getState() {
		return state;
	}
	public void setState(short state) {
		this.state = state;
	}
	public Vendor getVendor() {
		return vendor;
	}
	public void setVendor(Vendor vendor) {
		this.vendor = vendor;
	}
	public Classify getClassify() {
		return classify;
	}
	public void setClassify(Classify classify) {
		this.classify = classify;
	}
	public Brand getBrand() {
		return brand;
	}
	public void setBrand(Brand brand) {
		this.brand = brand;
	}
	public int getPinpaiid() {
		return pinpaiid;
	}
	public void setPinpaiid(int pinpaiid) {
		this.pinpaiid = pinpaiid;
	}
	
}
